/******************************************************************************
** 
** Messing with bits.
** 
** File name:	bits.c
** Compilation:	cc bits.c -o bits
** Execution:	./bits
** 
** Description:
** Program helps to understand bitwise operations in C.
** 
******************************************************************************/
#include <stdio.h>
#include "myfunctions.h"


int main()
{
    printf("%d\n", SetBits(0, 4, 4, 255));
    printf("%d\n", InvertBits(255, 1, 4));
    printf("%d\n", RightRot(5, 3));
    printf("%d\n", BitCount(252));
    return 0;
}